package com.mj.haier.rrskx.sharding;

import java.util.*;

public class TradeUtil {


    private static Map<String,String> tradeShardingMap;

    static {

        tradeShardingMap = new HashMap<>();
        tradeShardingMap.put("12001", "_s01");
        tradeShardingMap.put("12002", "_s02");
        tradeShardingMap.put("12102", "_s03");
        tradeShardingMap.put("12105", "_s04");
        tradeShardingMap.put("12106", "_s05");
        tradeShardingMap.put("12201", "_s06");
        tradeShardingMap.put("12204", "_s07");
        tradeShardingMap.put("12205", "_s08");
        tradeShardingMap.put("12206", "_s09");
        tradeShardingMap.put("12302", "_s10");
        tradeShardingMap.put("12303", "_s11");
        tradeShardingMap.put("12305", "_s12");
        tradeShardingMap.put("12306", "_s13");
        tradeShardingMap.put("12401", "_s14");
        tradeShardingMap.put("12402", "_s15");
        tradeShardingMap.put("12403", "_s16");
        tradeShardingMap.put("12501", "_s17");
        tradeShardingMap.put("12502", "_s18");
        tradeShardingMap.put("12503", "_s19");
        tradeShardingMap.put("12504", "_s20");
        tradeShardingMap.put("12505", "_s21");
        tradeShardingMap.put("12601", "_s22");
        tradeShardingMap.put("12602", "_s23");
        tradeShardingMap.put("12603", "_s24");
        tradeShardingMap.put("12604", "_s25");
        tradeShardingMap.put("12701", "_s26");
        tradeShardingMap.put("12702", "_s27");
        tradeShardingMap.put("12703", "_s28");
        tradeShardingMap.put("12704", "_s29");
        tradeShardingMap.put("12705", "_s30");
        tradeShardingMap.put("12802", "_s31");
        tradeShardingMap.put("12803", "_s32");
        tradeShardingMap.put("12805", "_s33");
        tradeShardingMap.put("12901", "_s34");
        tradeShardingMap.put("12902", "_s35");
        tradeShardingMap.put("12A01", "_s36");
        tradeShardingMap.put("12A02", "_s37");
        tradeShardingMap.put("12B01", "_s38");
        tradeShardingMap.put("12B02", "_s39");
        tradeShardingMap.put("12C01", "_s40");
        tradeShardingMap.put("12D01", "_s41");
        tradeShardingMap.put("12E01", "_s42");
    }

    /**
     * 获取根据工贸编码分库的key-value值
     * @return
     */
    public static Map<String,String> getTradeShardingMap(){
        return tradeShardingMap;
    }
}